<template>
	<view class="container" :style="{ minHeight: windowHeight + 'px' }">
		<!-- <scroll-view scroll-y="true" :style="{ height: `calc(${windowHeight}px - 170rpx )` }">
			<view class="article" ><u-parse :html="agreementText" :autosetTitle="false" :lazy-load="true"></u-parse></view>
		</scroll-view>
		<view class="agree-btn"><u-button @click="nextStep" :custom-style="customStyle" :ripple="true" shape="circle" type="error">我同意，开始认证</u-button></view> -->
	</view>
</template>

<script>
export default {
	data() {
		return {
			customStyle: {
				height: '80rpx',
				fontSize: '26rpx'
			},
			codeText: '',
			sended: false,
			windowHeight: null,
			seconds: 60,
			agreementText:''
		};
	},
	onLoad() {
		this.redirectTo({
			url: '/pageUser/certification/input'
		});
		// uni.setNavigationBarTitle({
		// 	title: '实名认证服务协议'
		// });
		const systemInfo = uni.getSystemInfoSync();
		this.windowHeight = systemInfo.windowHeight;
		this.$u.api.getAgreementData('AUTHENTICATION').then(res => {
			this.agreementText = res.data.detail.article_content;
		});
	},
	methods: {
		nextStep() {
			this.redirectTo({
				url: '/pageUser/certification/input'
			})
			// this.({
				
			// });
		},
		
	}
};
</script>

<style lang="scss">
.container {
	background: #fff;
}
.article {
	padding: 20rpx 30rpx;
	box-sizing: border-box;
}
.agree-btn {
	margin-top: 60rpx;
	height: 120rpx;
	padding: 0 30rpx 30rpx 30rpx;
}
</style>
